body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 20%, #0a0a2e, #000);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
}

.game-container {
    position: relative;
    padding: 20px;
    border: 2px solid #00f7ff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.3);
    background: rgba(10, 10, 46, 0.8);
    backdrop-filter: blur(10px);
}

#gameCanvas {
    display: block;
    border: 1px solid #00f7ff;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
    margin-bottom: 20px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
}

.score-container {
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    text-shadow: 0 0 10px #00f7ff;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#speed {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #00f7ff 0%, #00ff88 100%);
    border-radius: 2px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#speed::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px #00f7ff;
    transition: all 0.2s;
}

#speed::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px #00f7ff;
}

.buttons {
    display: flex;
    gap: 10px;
}

button {
    flex: 1;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background: linear-gradient(45deg, #00ff88, #00f7ff);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.4);
}

button:active {
    transform: translateY(0);
}

.game-instructions {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
}

.game-instructions h2 {
    margin: 0 0 10px;
    color: #00f7ff;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.game-instructions ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.game-instructions li {
    margin: 5px 0;
    position: relative;
}

.game-instructions li::before {
    content: '>';
    position: absolute;
    left: -15px;
    color: #00f7ff;
}